package cb.view;

import gameFramework.model.entites.Entity;
import gameFramework.view.GEntity;

import java.awt.Color;
import java.awt.Graphics2D;

/**
 * @author Thomas Hoarau
 *
 */
public class GCbBall extends GEntity{

	/**
	 * @param model
	 */
	public GCbBall(Entity model) {
		super(model);
	}

	/* (non-Javadoc)
	 * @see view.GEntity#draw(java.awt.Graphics2D)
	 */
	public void draw(Graphics2D g2d) {
		g2d.setColor(Color.YELLOW);
		g2d.fillOval(this.model.getPosition().x, 
				this.model.getPosition().y, 
				this.model.getSize().width, this.model.getSize().height);
	}
}
